package com.wswy.wzcx.model;

import com.google.gson.annotations.SerializedName;

import java.math.BigDecimal;
import java.util.List;

/**
 * Created by wangduheng26 on 2018/1/26.
 * wangduheng26@gmail.com
 */

public class GenreWare {
    @SerializedName("year")
    public int year;
    @SerializedName("monthAmount")
    public String monthAmount;
    @SerializedName("month")
    public int month;
    @SerializedName("details")
    public List<GenreChild> childs;

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        GenreWare genreWare = (GenreWare) o;

        if (year != genreWare.year) {
            return false;
        }

        if (month != genreWare.month) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "GenreWare{" +
            "year=" + year +
            ", monthAmount=" + monthAmount +
            ", month=" + month +
            ", childs=" + childs +
            '}';
    }
}
